﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace NextGenSystems.WHMCS
{
    public class GetProductsRS : WHMCSBASE
    {
        private int _TotalResults;
        private int _StartNumber;
        private int _NumReturned;
        private List<Products> _Products;

        [DataMember()]
        public List<Products> Products
        {
            get { return _Products; }
            set
            {
                if (_Products != value)
                {
                    _Products = value;
                }
            }
        }

        [DataMember()]
        public virtual int TotalResults
        {
            get { return _TotalResults; }
            set
            {
                if (_TotalResults != value)
                {
                    _TotalResults = value;
                    NotifyPropertyChanged("TotalResults");
                }
            }
        }

        [DataMember()]
        public virtual int StartNumber
        {
            get { return _StartNumber; }
            set
            {
                if (_StartNumber != value)
                {
                    _StartNumber = value;
                    NotifyPropertyChanged("StartNumber");
                }
            }
        }

        [DataMember()]
        public virtual int NumReturned
        {
            get { return _NumReturned; }
            set
            {
                if (_NumReturned != value)
                {
                    _NumReturned = value;
                    NotifyPropertyChanged("NumReturned");
                }
            }
        }
    }


  public  class Products
    {

        #region Attribute

        private Int64 _pid;
        private Int64 _gid;
        private string _type;
        private string _name;
        private string _description;
        private string _module;
        private string _paytype;

        #endregion

        #region Propeties

        [DataMember()]
        public Int64 Pid
        {
            get { return _pid; }
            set { _pid = value; }
        }
        [DataMember()]
        public Int64 Gid
        {
            get { return _gid; }
            set { _gid = value; }
        }
        [DataMember()]
        public string Type
        {
            get { return _type; }
            set { _type = value; }
        }
        [DataMember()]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }
        [DataMember()]
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }
        [DataMember()]
        public string Module
        {
            get { return _module; }
            set { _module = value; }
        }
        [DataMember()]
        public string Paytype
        {
            get { return _paytype; }
            set { _paytype = value; }
        }

        #endregion
    }
}
